﻿using System;

namespace CounttheNumberofConsistentStrings
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine(new Solution().CountConsistentStrings(allowed: "abc", words: new string[] { "a", "b", "c", "ab", "ac", "bc", "abc" }));
        }
    }
}
